
<%@page import="com.tt.DAO.UserManager"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.sql.*, com.tt.shpping.*, java.util.*" %>
<%
List<User> users = UserManager.getUsers();
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<table border="1" align="center">
		<tr>
			<td>Id</td>
			<td>Username</td>
			<td>Phone</td>
			<td>Address</td>
			<td>Rdate</td>
			<td>管理</td>
		</tr>
		<%
		for(Iterator<User> it = users.iterator(); it.hasNext();) {
			User u = it.next();
			
		
		%>
			<tr>
			<td><%=u.getId()%></td>
			<td><%=u.getUsername() %></td>
			<td><%=u.getPhone() %></td>
			<td><%=u.getAddr() %></td>
			<td><%=u.getRdate() %></td>
			<td>
				<a href="userdelete.jsp?id=<%=u.getId()%>" target="detail">删</a>
			</td>
		</tr>
		
		<%
		}
		%>
	</table>

</body>
</html>